package com.ruoyi.school.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("firmware_upgrade_task")
public class FirmwareUpgradeTask extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String taskNo;

    private Long packageId;

    private Long deviceId;

    private Long deviceTypeId;

    private Integer taskStatus;

    private Integer upgradeProgress;

    private String currentStep;

    private Date scheduleTime;

    private Date startTime;

    private Date endTime;

    private String upgradeResult;

    private String errorMessage;

    private Integer retryCount;

    private Integer maxRetryCount;

    private Integer timeoutMinutes;

    @TableField(exist = false)
    private String deviceName;

    @TableField(exist = false)
    private String deviceCode;

    @TableField(exist = false)
    private String packageVersion;

    @TableField(exist = false)
    private String deviceTypeName;
}
